package com.dxyxx.framework;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.Window;
import android.view.WindowManager;

import com.dxyxx.R;

public class SplashActivity extends Activity {
	/**
	 * Called when the activity is first created.
	 */

	@Override
	public void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		//不显示程序的标题栏
		requestWindowFeature(Window.FEATURE_NO_TITLE);

		//不显示系统的标题栏          
//		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
		setContentView(R.layout.activity_splash);
		new Handler().postDelayed(new Runnable() {
			public void run() {
				/* Create an Intent that will start the Main WordPress Activity. */
				Intent mainIntent = new Intent(SplashActivity.this, FragmentMainActivity.class);
				SplashActivity.this.startActivity(mainIntent);
				SplashActivity.this.finish();
			}
		}, 1000); //1000 for release

	}

}
